package z.database.async;

import z.database.callback.DBCallBack;
import z.database.callback.DBDeal;

public class AsyncData {
	public static void deal(final String methodName, final DBCallBack callBack, final DBDeal deal) {

		new Thread() {
			@Override
			public void run() {
				Object data = deal.deal(null);
				if (callBack != null) {
					callBack.dbTaskFinish(methodName, data);
				}
			}
		}.start();
	}
}
